<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>任务名称</label>
              <span>（任务名称，用于前端展示）</span>
              <input class="form-control" name="name" placeholder="请输入任务名称" value="{$info['name']|default=''}" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
              <label>排序</label>
              <input class="form-control" name="sort" placeholder="请输入排序值" value="{$info['sort']|default='0'}" type="text">
            </div>
          </div> 
            
          
           <div class="col-md-6">
            <div class="form-group">
              <label>完成度</label>
              <select name="degree" class="form-control">
                    <option value="0" {notempty name='info'}{if condition="$info['degree'] eq 0 "} selected="selected" {/if}{/notempty}>完成</option>
                    <option value="1"{notempty name='info'}{if condition="$info['degree'] eq 1 "} selected="selected" {/if}{/notempty}>未完成</option>
                </select>
            </div>
          </div> 
          <div class="col-md-6">
            <div class="form-group">
              <label>完成时间</label>
              <select name="complete_time" class="form-control">
                    <input class="form-control date" name="complete_time" placeholder="请输入完成日期" value="{$info['complete_time']|default=''}" type="date">
                </select>
            </div>
          </div> 

           <div class="col-md-6">
            <div class="form-group">
              <label>图片</label>
              {assign name="pic" value="$info.pic|default='0'" /}

              {:widget('file/index', ['name' => 'pic', 'value' => $pic, 'type' => 'img'])}
            </div>
          </div> 
            
   
            
          </div>
        </div>
        
      <div class="box-footer">
          
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
        
        {include file="layout/edit_btn_group"/}
      </div>
        
      </div>

</form>